﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyMvcBlog.Data;

namespace EasyMvcBlog.DTO
{
    public class ArticleDTO
    {
        public int Id { get; set; }

        public string Title { get; set; }
        public string Content { get; set; }
        public IList<Tag> Tags { get; set; }
        public Category Category { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime ChangedTime { get; set; }

        /// <summary>
        /// 文章简介
        /// </summary>
        public string ShortDesc { get; set; }

        /// <summary>
        /// 文章对游客是否可见
        /// </summary>
        public virtual bool IsVisitorVisible { get; set; }

        /// <summary>
        /// 禁止评论
        /// </summary>
        public virtual bool DenyComment { get; set; }
    }
}
